<?php require_once 'head.html';?>
        <div class="span9">
		 
		  
		        <div>

  <!-- Nav tabs -->
  <ul class="nav nav-tabs" role="tablist">
    
    <li role="presentation" class="active"><a href="#music" aria-controls="music" role="tab" data-toggle="tab">音乐上传</a></li>
    <li role="presentation"><a href="#video" aria-controls="video" role="tab" data-toggle="tab">视频上传</a></li>
  </ul>

  <!-- Tab panes -->
  <div class="tab-content">
  <!--     音乐配置 -->
    <div role="tabpanel" class="tab-pane active" id="music">
    
 <div class="row-fluid">
			<div class="page-header">
				<h1>音乐上传 <small>Music UpDate</small></h1>
			</div>
			<?php if(count($music)){?>
			<table class="table table-striped table-bordered table-condensed">
				<thead>
					<tr>
						<th>序号</th>
						<th>音乐外链</th>
						<th>文件信息</th>
						<th>上传时间</th>
						<th>上传作者</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
				<script>			
								</script>
				<?php  $i=1; foreach($music as $mp3){?>
				<tr class="list-upload">
					<td><?php echo $i;?></td>
					<td><input style="width: 100%;margin:0px;padding:0px;" type="text" value="http://<?php echo $_SERVER['HTTP_HOST']  .  @trim($mp3['rlink'] ,  '..');?>" /></td>
					<td><?php echo $mp3['title'];?><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="20" height="20"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">
    <param name="movie" value="Delivery/js/mp3/EasyMp3Player.swf?showDownload=false&file=<?php echo $mp3['rlink']?>" />
    <param name="wmode" value="transparent" />
    <embed wmode="transparent" width="25" height="20" src="Delivery/js/mp3/EasyMp3Player.swf?showDownload=false&file=<?php echo $mp3['rlink']?>"
    type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object></td>
					<td><?php echo date('Y-m-d h:i:s', $mp3['times']);?></td>
					<td><?php echo $mp3['athor'];?></td>
					<td><a style="text-decoration:none;cursor:pointer;" onclick='if (confirm("确定删除？") == true){location.href="?c=upload&ip=del&id=<?php echo $mp3['id'];?>&file=<?php echo $mp3['rlink']?>";}'>删除</a></td>
				</tr>
				<?php $i++;}?>
					
				</tbody>
			</table>
			
				<div class="pagination">
				<ul>
				<?php if ($p !== 1){?>
					<li><a href="?c=upload&p=<?php echo $break;?>">上页</a></li><?php }?>
					
				  <?php pagenum($pageCount, $p, 10);?>
				
					<?php if ($p !== $pageCount){?><li><a href="?c=upload&p=<?php echo $next;?>">下页</a></li><?php }?>

				</ul>
				
			</div>
			<?php }else{?>
			<p>没有记录哦，请上传一个音乐吧~</p><hr>
			<?php }?>
			<form class="form-horizontal" action="?c=upload" method="post" enctype="multipart/form-data">
				<fieldset>
				   <div class="control-group">
						<label class="control-label" for="rlink">文件选择</label>
						<div class="controls">
					<input id="file" type="file" class="input-xlarge inputfile" id="rlink" name="rlink"/>
          			</div>
					</div>
					
					<div class="control-group">
						<label class="control-label" for="title">标题</label>
						<div class="controls">
							<input type="text" name="title" class="input-xlarge" id="title" placeholder="输入一个标题,用于分辨文件.." />
						</div>
					</div>
					<div class="form-actions">
						<input name="upload_music" type="submit" class="btn btn-success btn-large" value="上 传" /> <a class="btn" href="?c=index">返回仪表盘</a>
					</div>				
				</fieldset>
			</form>
		  </div>

    </div>
<!--    /. 音乐配置 -->
  
<!--   视频配置 -->
    <div role="tabpanel" class="tab-pane" id="video">
    
 <div class="row-fluid">
			<div class="page-header">
				<h1>视频上传 <small>Video UpDate</small></h1>
			</div>
			<p>由于视频上传，文件太大，所以推荐使用以下系统上传：</p>
			<a href="http://ugc.taobao.com/video/uploadVideo.htm?spm=0.0.0.0.o33dyJ" target="_blank"><button type="button" class="btn btn-info">淘宝高清视频上传(推荐)</button></a>
		  </div>

</div>
<!--    /. 视频配置 -->





  </div>

</div>
		  

		  
		  
        </div>
      </div>

      <hr>

      <?php require_once 'foot.html';?>

    </div>

    <script src="Delivery/js/jquery.js"></script>
	<script src="Delivery/js/bootstrap.min.js"></script>
  </body>
</html>
